#ifdef UNDER_CE

#include <time.h>

errno_t localtime_s(struct tm * _Tm, const time_t *_Time)
{
	__time64_t t64 = *_Time;
	return _localtime64_s(_Tm, &t64);
}

#endif
